﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JeanFish.AnA.OAuth2
{
    public abstract class Token
    {
        protected abstract string Value { get; set; }
    }
    public abstract class AccessToken : Token
    {
        public abstract string TokenType { get; }
        public int ExporesIn { get; set; }
        public string Scope { get; set; }
        public RefreshToken RefreshToken { get; set; }
        protected override string Value
        {
            get;
            set;
        }
    }
    public class RefreshToken : Token
    {
        protected override string Value
        {
            get;
            set;
        }
        public string GrantType
        {
            get { return "refresh_token"; }
        }
        public string Scope { get; set; }
    }
}
